<div id="products_list_gallery">
<?php
$col_per = 3;
$i=1;
for($row=0; $row<sizeof($list_box_contents); $row++) {
?>
	<div <?php echo $list_box_contents[$row]['params'];unset($list_box_contents[$row]['params']);?>>
		<ul>
<?php	
	foreach ($list_box_contents[$row] as $product){
?>		
			<li <?php echo $product['params']?>><?php echo $product['text']?></li>
<?php 		
	}  	
?>
		</ul>
<?php if (isset($list_box_contents[$row]['is_featured'])&&$list_box_contents[$row]['is_featured']) echo '<span class="products_list_featured"></span>'?>		
	</div>
<?php 	
	if ($i%$col_per==0){
		echo '<br class="clearBoth">';
	}
	$i++;
}
?>
</div>
	<div class="clearBoth"></div>
